﻿using Core.SimpleTemp.Common;
using Core.SimpleTemp.Entitys;
using Core.Toolkit.Core.Application;
using System;
using System.ComponentModel.DataAnnotations;

namespace Core.SimpleTemp.Application.RoleApp
{
    [CreateMap(typeof(SysRole))]
    public class SysRoleDto : Dto
    {
        [StringLength(20)]
        public string Code { get; set; }
        [StringLength(20)]
        public string Name { get; set; }
        [StringLength(100)]
        public string Remarks { get; set; }
        public Guid? CreateFactory { get; set; }
        [KeyToValue("9002", "CreateFactory")]
        public string CreateFactoryText { get; set; }
        
    }
}
